package cn.ren.controller;

import cn.ren.entity.PageResult;
import cn.ren.entity.QueryPageBean;
import cn.ren.service.RpAddressService;
import com.alibaba.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: exercise_health
 * @description:
 * @author: ren
 * @create: 2020-03-10 17:14
 **/
@RestController
@RequestMapping("/rpAddress")
public class RpAddressController {
    @Reference
    private RpAddressService rpAddressService;

    @RequestMapping("/findAll")
    public PageResult findAll(@RequestBody QueryPageBean queryPageBean){
        return rpAddressService.findPage(queryPageBean);
    }
}
